package com.supercube.sport.yoga.dao;

import com.supercube.sport.yoga.domain.MemberConsumeRecordDTO;
import com.supercube.sport.yoga.vo.MemberConsumeRecordVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface MemberConsumeRecordMapper {
    int deleteByPrimaryKey(String id);

    int insert(MemberConsumeRecordDTO record);

    int insertSelective(MemberConsumeRecordDTO record);

    MemberConsumeRecordDTO selectByPrimaryKey(String id);

    List<MemberConsumeRecordDTO> selectRecordDTOByMemberId(String memberId,String bindingCardId);

    int updateByPrimaryKeySelective(MemberConsumeRecordDTO record);

    int updateByPrimaryKey(MemberConsumeRecordDTO record);

    List<MemberConsumeRecordVo> selectByMemberId(@Param("memberId") String memberId,@Param("cardId") String cardId);
}